<template>
    <div class="c-h5-now__base">
        <div class="c-h5-now-base__item">
            <h2>降水</h2>
            <p>{{ now.pcpn }}mm</p>
        </div>
        <div class="c-h5-now-base__item">
            <h2>湿度</h2>
            <p>{{ now.hum }}%</p>
        </div>
        <div class="c-h5-now-base__item">
            <h2>{{ now.wind_dir }}</h2>
            <p>{{ now.wind_sc }}级</p>
        </div>
        <div class="c-h5-now-base__item">
            <h2>气压</h2>
            <p>{{ now.pres }}hpa</p>
        </div>
    </div>
</template>
<script>
export default {
    props: ['now'],
    data() {return{} }
}
</script>
<style scoped>
 

.c-h5-now-base__item h2 {
    font-weight: normal;
    font-size: 18px;
    color: #FFFFFFBB;
    padding: 0.5rem;
    margin: 0;
}

.c-h5-now-base__item p {
    font-size: 14px;
    margin: 0;
}
.c-h5-now__base {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 0px;
    color: white;
    /* font-size: 34px; */
    padding-top: 30px;
    text-align: center;
    padding-bottom: 30px;
}

.c-h5-now-base__item p {
    font-size: 18px;
    margin-bottom: -12px;
    padding-top: 10px;
}

.c-h5-now-base__item {
    flex: 1;
    border-right: 1px solid;
}

.c-h5-now-base__item:nth-last-child(1) {
    border: 0;
}
</style>